﻿namespace DI_test;

public class VideoAdapterInjector
{
    public static IVideoAdapter Inject(VideoAdapters adapter){
        return adapter switch
        {
            VideoAdapters.Nvidia => new NvidiaVideoAdapter(),
            VideoAdapters.AMD => new AMDVideoAdapter(),
            VideoAdapters.Intel => new IntelVideoAdapter(),
            _ => new NvidiaVideoAdapter(),
        };
    }
}
